package com.xuecheng.base.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 分页查询结果
 * @author Tang
 * @version 1.0
 * @date 2023/12/20 20:44
 */
@Data
@AllArgsConstructor
public class PageResult<T> implements Serializable {
    @ApiModelProperty(value = "每页的条目")
    private List<T> items;
    @ApiModelProperty(value = "条目总数")
    private long counts;
    @ApiModelProperty(value = "当前页")
    private long page;
    @ApiModelProperty(value = "每页大小")
    private long pageSize;
}
